function [ index ] = NN( array, element )
    [garbage, index]=min(EuclideanDistance(array,element));
end

